Ext.define('HRMobile.view.chart.EmpAgeChart', {
	extend : 'Ext.chart.PolarChart',
	config : {
		height : '100%',
		autoDestroy: 'true',
		store : {
			fields : [ 'age', 'number' ],
			autoLoad: true,
			 proxy: {
		         type: 'jsonp',
		         reader: {
		        	 rootProperty: 'Grouped by Age',
		        	 type: 'json'
		         },
		         
		         url: 'http://mw.xalo.vn/HREntry/MobileAPI?type=human&n=2&contentType=text/javascript',
		         
			 }
		},
		innerPadding : 35,
		// background: 'black',
		interactions : [ 'rotate' ],
		colors : [ "#115fa6", "#94ae0a", "#a61120", "#ff8809", "#ffd13e",
				"#a61187", "#24ad9a", "#7c7474", "#a66111" ],

		legend : {
			position : Ext.os.is.Phone?'bottom':'left',
			width : Ext.os.is.Phone?null:150,
		},

		series : [ {
			type : 'pie',
			xField : 'number',
			labelField : 'age',
			donut : 25,
			style : {
				miterLimit : 10,
				lineCap : 'miter',
				lineWidth : 2
			}
		} ]
	}

});